package com.gec.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.model.system.ITripRole;
import com.gec.model.vo.AssginRoleVo;
import com.gec.model.vo.ITripRoleQueryVo;

import java.util.Map;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author chenzhiling
 * @since 2024-01-20
 */
public interface ITripRoleService extends IService<ITripRole> {
    IPage<ITripRole> selectPage(IPage<ITripRole> page1, ITripRoleQueryVo iTripRoleQueryVo);

    /**
     * 根据用户获取角色数据
     * @param userId
     * @return
     */
    Map<String, Object> getRolesByUserId(Long userId);

    /**
     * 分配角色
     * @param assginRoleVo
     */
    void doAssign(AssginRoleVo assginRoleVo);

    ITripRole selectByName(String roleName);
}
